package com.pengxun.manager.service.system;

import java.util.List;

import com.pengxun.manager.model.system.UserRole;
import com.pengxun.manager.vo.AssignRolesVO;
import com.szeastroc.common.jdbc.page.Page;


public interface  UserRoleService {
   public int insert(UserRole userRole);
   
   public int update(UserRole userRole);
   
   public int delete(Integer id);
   
   public Page findByPage(Page page);
   
   public List<UserRole> findByUserId(Long userId);
   
   int deleteByroleCode(String roleCode);


   /**
    * 分配角色
    * @param assignRolesVO
    * @return
    */
   public void assignRoles(AssignRolesVO assignRolesVO);

   
}
